//
//  cvCell.m
//  Education
//
//  Created by lichq on 13-5-30.
//  Copyright (c) 2013年 ffcs. All rights reserved.
//

#import "cvCellBook.h"

@implementation cvCellBook
@synthesize book;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        /*
        self.contentView.backgroundColor = [UIColor redColor];
        
        self.backgroundColor = [UIColor orangeColor];
        
        UIView *selBG = [[UIView alloc]init];
        selBG.backgroundColor = [UIColor purpleColor];
        self.selectedBackgroundView = selBG;
        */
        

        CGFloat viewMargin = 20;
        CGFloat viewSpacing = 15;
        CGFloat viewX = viewMargin;
        CGFloat viewY = 10;
        CGFloat viewH = 100;
        CGFloat viewW = (320 - viewMargin - viewSpacing - viewSpacing  - viewMargin)/3;
        
        self.book = [[BookView alloc]initWithFrame:CGRectMake(viewX, viewY, viewW, viewH)];
        [self.contentView addSubview:self.book];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
